package com.campus.service;

import com.campus.entity.Student;
import com.campus.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public void insertStudent(Student student) {
        studentMapper.insertStudent(student);
    }
    @Override
    public void insertStudents(List<Student> students) {

        studentMapper.insertStudents(students);
    }
    @Override
    public void approveStudent(Student student){
        studentMapper.approveStudent(student.getId());
    }
    @Override
    public void approveStudents(List<Integer> ids){
        studentMapper.approveStudents(ids);
    }
}
